home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-06-09 | 18.4 KB | 300 lines | [TEXT/GRA1] |
- Preliminary notes: v 1.4.2
-
- Disclaimer: These notes are a guide only, they do not constitute a user manual.
-
- “If this program proves useful to anyone out there then fine, if not then that's fine too.”
-
- New for 1.4.2/1.4.3
-
- • System 7.0 Publish and Subscribe! Allows for publication of plots and subscription of
- data. By combining Auto redraw for plots and a new auto publish options, Graf can serve as
- a plotting facility to any program that can publish and subscribe.
- • Enabled the colour option for the marker symbols at last. (They used to be stuck as black)
- • Resolved design problems with 'Header' data windows. The file name is nolonger suffixed
- with the '-Header' text. The info box now displays tiny status icons that differentiate the Header
- files from normal data files. This fixes problems with file names on disk.
- • Can operate in the background. This is useful for publish/subscribe server setting and for
- future releases of Graf with Apple Event control.
- • Standardised the dialog button locations to suit the system 7.0 user interface guidelines.
- • New smoothing algorithm based on bezier curves to give a truely parametric smoothing. This
- means that you can smooth a spiral if you really want to.
- • Faster columns allocation dialog, you can now jump forward and back by 6 columns at a time
- by clicking in the numbers part of the 'scrollbar'. The click sound has been removed as well.
- • Plot page preview windoid. Useful for Macs with small screens, this will reduce the need
- for scrolling around to check the page layout for big plots.
- • Changed Default Text and Defaul Plot mechanism. You now need to place the default files
- in the system folder on the startup disk. The preferences folder is not used to maintain System 6
- compatibility without undue coding complications.
- • Reorganised plot window menus. Overlays is now a submenu of a 'Special' menu which
- includes the new page preview option.
- • Added cooler colour buttons/icons etc for those with colour macs.
- • Improved tearoff menus so that they don't tear off so easily.
- • Upgraded the line style menus to bring it in line with the style of the other tearoffs.
- • Fixed bug where last byte in data file was ignored (Thanks John)
- • Fixed colour menu so that the colour items remain coloured.
- • Finally fixed text scrolling (Applause!).
- • Many minor bug fixes, to numerous to mention (well, this is freeware)
-
- New for 1.3.1/1.3.2
-
- • Figured out 68000 mac (Plus, SE etc) QuickDraw bug work around.
- Stops crash on startup when using a default plot. I should never have sold my mac plus....
- • Also for 68000 mac owners, speed up in text input.
- • Fixed crash upon quitting without saving any modified files
-
- IMPORTANT: New for 1.3.0
-
- • Fixed a bug when saving large files (ie Header windows) that would otherwise cause all
- but the first 28k to be missing from the saved file. This may cause data to be lost. Please
- stop using ANY version before 1.3.0.
- • Fixed a bug caused by cosmetic plotting bug fixes.... (see v1.2.6)
-
- {Stuff about eariler versions deleted}
-
- Introduction:
-
- Graf is object oriented in the way it handles data and plots. This means that each set of data has the
- information on how it wants to be plotted, and each plot has its own formatting information and a
- list of data to plot.
-
- This is implemented through popup menus, thus Graf requires at least System version 6.0.2 to
- operate. It will of course operate with all newer versions. It is system 7.0 friendly, 32 bit clean
- and compatible with all macs from the mac plus up to the Quadra 950.
-
- There are two kinds of windows in Graf. The first it the data windows, such as this one, and the
- other is the plot window type. Each kind of window has its own popup menubar to set up the various
- parameters needed for the final plotting.
-
- Firstly, the data window menus:
-
- • Marker: This menu allows the symbols and error bar styles to be set for the data points when
- they are plotted. The current selection is shown on the menubar beside “Marker”.
-
- •Symbols: This menu graphicly shows the available symbols.
- This menu is a 'tearoff' just like some hypercard menus. Will stay around so long as the active
- window is a data window (since plots don't have markers.)
-
- •Size: This is the size of the enclosing box that the symbol is drawn in (the box is not drawn). The
- “Other…” option uses the resource picture to show size changes graphicly. Note that when a high
- resolution printer is used, the PICT format of symbol will automaticly take advantage of the higher
- resolution and in general the symbols look best on the final output (where we want them to).
-
- •Errors: Graf allows for independent +Δx, -Δx, +Δy and -Δy errors. The first 6 options are
- various styles of errors, from none to ovals, the last two options are vector plot options, where
- the Δx and Δy terms are not errors, but actually form a vector with the main data point. One
- option has little arrow heads and the other is symmetrical about the data point and is bi directional.
- This menu is now a 'tearoff' just like some hypercard menus. Will stay around so long as the active
- window is a data window (since plots don't have markers.
-
- •Line: This menu specifies the way in which data points are joined. The current selection is shown
- on the menubar beside “Line” as a line in the selected style, and a small icon to show the joining
- method.
-
- •Pensize: is the thickness of the pen in point/pixels, On the screen widths less than one are
- displayed as one. On high resolution printouts the actual thickness asked for is used.
-
- •Pattern: shows the system list of patterns, to use in drawing the line. The 'plain' grays have
- postscript grays substituted when printed, other bitmaps are copied. If you really want a different
- pattern, then warm up ResEdit and make your own PAT# resource in Graf....
- This menu is now a 'tearoff' just like some hypercard menus. Will stay around so long as the active
- window is a data window (since plots don't have patterns).
-
- •Style: determines the methods of joining points, from a simple straight line to no line at all. The
- rectilinear methods are useful for discrete, binned data where the value corresponds to the centre,
- right or left edge of the bin. The smoothed option is a parametric quadratic bezier curve
- using the data points and as off curve controls and data point mid points as on curve controls.
- This menu isa 'tearoff' just like some hypercard menus. Will stay around so long as the active
- window is a data window (since plots don't have LineStyles of their own).
-
- •Form Polygons: If this item is chosen, then the line segments will be grouped into macdraw style
- polygons rather than simple groups. So, if you want a spline smoothing, then edit the plot with
- macdraw, select the line and choose the smooth option...
-
- •Setup: This is where the x,y and error columns are assigned, and any scaling or offsets are
- applied. Once the columns and offsets are determined (or defaulted) then these plus the Marker and
- Line settings constitute a 'setup'. With multicolumn data, it is often desirable to plot several
- different pieces of information,in different styles, so each data window actually has a list of
- setups, starting with the initial
- '1 of 1' . New, independent settings can be defined by adding new setups to the list with the little
- arrows. the single arrows navigate up and down the list, adding new setups if needed. The double
- arrow is used to reduce the total list of setups. When a data window is plotted, it is actually
- plotted a number of times, once for each setup in the list.
-
- •The 'Tabbed data' option refers to typical mac spreadsheet tab delimited data. Without this option
- strings of tabs are regarded as as single column setting. When this options used then each tab
- indicates a new column. This item is necessary for tabbed spreadsheets with missing entries in
- some positions.
-
- •Text: The data windows are text files, and behave like a very simple word processor (hence this
- document). So each data has a Text menus for changing the appearance of the data only, this has no
- effect on the plotting operations at all.
-
- The data in the data windows is organised as follows:
-
- •The data is in a 'free form' text style, unlike the more common cell or spreadsheet style. This has
- a number of advantages and disadvantages:
- •The best advantage is that virtually any TEXT document can be read in a view in a readable and
- sensible manner. Special column separators and so on are not needed.
- •The worst disadvantage is that manipulating columns of data is very difficult. Graf is NOT an
- analysis program, and any spreadsheet like fiddling should be done before entering Graf. A
- Multifinder setup with excel and Graf works very well, with Graf providing the high quality
- graphics that Excel lacks.
- • The data is still conceptually organised in columns, with the columns being defined on a line by
- line basis. That is, columns only exist on lines that have columns of numbers, and any line can have
- any number of columns from 0 up.
- • Graf uses a fairly clever interpreter to get the information from the data. This means that
- enormous data arrays are not needed, in fact only 6 binary numbers are needed (x,y,+Δx,-
- Δx,+Δy,-Δy) at any one time. It has also been introduced to the output from various makes of
- computers and can handle data with line feeds or without for example.
- • The following is a conceptual description of how Graf reads the data files:
- i) Check the first non-space character on a line,Column counter = 0,
- ii) If it is a numerical character then goto 4
- iii) Skip line and goto 1
- iv) increment column counter
- v) Read in characters until a non-numerical character or newline is encountered
- vi) Form a number with the characters so far.The numbers that correspond to your column
- settings are plotted and the rest are skipped.
- vii) read more characters, goto 2.
- {this is VERY conceptual}
-
- •Put Simply: any line that doesn't begin with a number is skipped. Columns of numbers may be
- separated by any non numerical characters. Columns are read along a line until the line runs out or
- the required columns have been read. Any time a required number fails to evaluate (ie a malformed
- number or missing columns, a value of zero is used, mostly so the problem is visible and
- corrections can be applied).
- •Individual window may only contain ~32000 characters, If a large data file is read, Graf keeps
- track of most of it, and only displays a header window. This header allows you to make any settings
- for the data, but editing the header (which is only part of the data anyway) will have no effect on
- the plotting.
-
- The plot windows menus:
- • The most important menu in the plot window is the “Data sets” menu. This is a dynamic, changing
- menu that shows the list of available data to plot. By selecting data window with this menu, the plot
- window accumulates the list of data to plot. When the draw button is pressed, this list is processes
- sequentially, in the order they were selected. If a data window consists of a series of setups the
- these are cycled through before the next data is processed. Each data set is plotted in the style
- defined in the manner defined in their respective setups in their respective windows.
-
- •Axes: this menu defines the basic appearance of the plot.
-
- •Size refers to the size of the rectangular frame that the plot is drawn in. The dialog box that come
- up is designed to work in pixels as this is the only way to be sure of the final result. There are x2
- and /2 buttons for scaling up and down easily, useful for when you want to print at some sort of
- reduction on your printer.
- • Ticks: Tick spacing are in terms of the data units, tick lengths are in pixels. The Autoscale button
- provides 'semi-automatic' scalings of ticks to the current range. A warning will appear if you
- choose a ticks spacing that will produce hundreds of ticks, either redo the spacing or use the auto
- scale option.
- •Range: determines the data values that will be plotted. Data points outside this range will not be
- plotted. If all points fall out of range during a plot then a warning is given.
- •Scales: This is where you can choose normal, log-normal and log-log plotting, to various bases.
- The data is “logged” and the plotted on normal linear axis, there are no silly uneven spaced ticks.
- •Numbers etc: This section of the Axes menu determines the setting for the axes numbers!
- •Labels:This menu is the implementation of labelling in Graf. It provides for a title, x-axis label and
- y axis rotated label. In addition a legend facility is available. For more fancy labelling, save the plot
- and post edit it with a program like macdraw.
- •Thickness: is the thickness of theframe and ticks in point/pixels, On the screen widths less than
- one are displayed as one. On high resolution printouts the actual thickness asked for is used.
-
- Each submenu give independent control over the content and style of each label. The dialog boxes
- ask for a string (up to 40 chars) and a location (in pixels) for the label. The labels are centered on
- the location The labels can be drawn or not drawn, and have an optional frame.
-
- The names used in the legend come from the columns setup for the data sets. The lines/marker
- styles are read from the data setups.
-
- • Special: This menu contains a group of miscellaneous items.
- • Preview…: This item brings up a small floating winowoid that displays the current plot and the
- number of pages needed to print it using the current page setup. As the plot size and/or pagesetup
- change this window will resize to reflect the page layout. It will not grow too large however and
- should always remain a relatively small proportion of a 9" Mac screen in size. You cannot
- manipulate the plot layout with the windoid.
- •Overlays: this is a list of plot windows. This list is drawn in the current plot window before the
- current plot is drawn. In this way multiple plots can be layed out on one page. In addition, Graf can
- read any PICT file into a plot window, so some fancy background pictures could be used for your
- plots.
-
- •The Draw button: In general, drawing the data is a slow business, compared to the frame and axes
- etc. So While all the plot formatting is redrawn automaticly, no data is plotted until the button is
- pressed. When there are few data points, this is no problem, and when there are many, it is much
- easier to get everything just right and then plot the data last.
-
- The data plotting can be interrupted on a set by set basis. That is 'command - .' will stop the
- current set being plotted, and the next set if any will be commenced. For a single set this will then
- stop the plotting and for multiple sets, multiple interrupts may be needed. This was done to allow
- finer control over the interruptions, particularly is you want to skip forward over sets to have a
- look at how a later set will look.
- During plotting, the data window being plotted is displayed in the bottom left 'information' box in
- the plot window. A percentage shows how much of the file has been read (not how many data
- points), in ten line steps. With multiple setups, one file name will be shown with the setup counters
- incrementing several times.
-
- Graphical plot manipulation:
-
- Frame:
- •A single-click-drag in the plot frame allows the user to reposition the frame, the frame etc will
- be redrawn, but not the data.
- •A double-click in the frame will bring up the size dialog.
- •The bottom right corner of the frame is a resizing corner for clicking and dragging. Labels &
- Legend:
- •A single-click-drag in the labels allows the labels to be relocated. In a layered system, the labels
- are on top of the data and frame.
- •A double-click in a label will bring up the appropriate dialog. Ticks:
- •A double-click in the lower x axis ticks or left y axis ticks will bring up the range dialog.
- •A option-double-click in the lower x axis ticks or left y axis ticks will bring up the ticks dialog.
-
- Numbers:
- •A double-click in the numbers will bring up the numbers dialog.
-
- General Notes:
-
- The fine lines in Graf do not require page reduction for printing, a good result will come from 100%
- page sizes. If you are attempting to make multiple line segments look smooth however, consider
- drawing a large plot and reducing the printout, this reduces the quickdraw integer coordinate
- rounding errors which depend on the resolution that the plot is drawn at. That is if you have 2000
- pixels to choose from compared to 200 ,say, the a better accuracy will be achieved.
-
- Graf knows what resolution the printer is using, so you do not have to use the precision bitmap 4%
- reduction etc, and a 25% reduction really maps to 300 dpi on the laserwriter. The page breaks for
- the plot, using the current page setup are drawn in 3 pixel wide stripped lines, these lines are NOT
- printed. These lines are centred on the page break.
-
- The normal menubar menus are standard menus, plus a Data window to display data windows, and a
- plot menu for finding plot windows. The “Hide” file option simply makes the window invisible, the
- window still exists and can be plotted etc, the appropriate menu will redisplay the windows.
-
- In principle there are no limits to the number of windows, size of data or plots etc in Graf, however
- the current version will only handle upto ~256 windows and 100 column data and any number of
- setups! This is all limited by your available memory, but graf will work in ~400K of RAM with 10
- or so windows. Check the about… item for your current free memory. If you get low on memory
- then you will be given the opportunity to save your work and quit. Try the usual methods to
- increase your RAM available for the program if this happens.
-
- General Setup:
-
- Default settings can be defined by setting up a window in the desired format and saving it under a
- special name. For default text settings name the file 'Default Text' (case is important), and use
- 'Default Plot' for a default plot setting. When new blank windows are required, Graf will look for
- these files in the same directory as Graf, and in the system folder. If they are found then they will
- be loaded in as Untitled-x or Plot-x (where x is a number). If they are not found then internal
- defaults are used.
-
- The Preferences menu item 'Auto draw plots' is the same as using the draw button all the time. This
- is only really useful for small data sets when drawing is quick.
-
- The Show Floats item will only be available once a floating palette/menu has been torn off. The
- show /hide operations will only apply to the currently 'torn' menus.
-
- bugs to:
-
- Ralph S. Sutherland.
- 9 Mt Stromlo Observatory
- Private Bag Weston P.O. 2611
- A.C.T.
- Australia
-
- email:
-
- ralph@madras.anu.edu.au or ralph@merlin.anu.edu.au
-
-